{template "content","header"}
<!--main-->
  <div class="ad ad-b-leaderboard"></div>
  <div class="clearfix assetport">
    <div class="notice"><strong>PHP开发网公告:</strong>
      <script type="text/javascript">
document.write('<a href="{siteurl($siteid)}/index.php?m=member&c=content&a=publish" target="_blank">PHP开发网开放征稿，欢迎会员踊跃参与</a>');   
</script>
    </div>
    <div class="quicksearch"> <a class="contribute" href="{siteurl($siteid)}/index.php?m=member&c=content&a=publish" target="_blank">投稿</a> <a class="rss" href="{APP_PATH}index.php?m=content&c=rss&siteid={get_siteid()}">订阅</a>
      <form name="search" method="GET" action="{APP_PATH}index.php">
        <input type="hidden" name="app" value="search">
        <input type="hidden" name="controller" value="index">
        <input type="hidden" name="action" value="search">
        <input type="hidden" name="type" value="all">
        <input type="input" onFocus="this.value=(this.value=='全文搜索')?'':this.value" onBlur="this.value=(this.value=='')?'全文搜索':this.value" name="wd" value="全文搜索" class="text">
        <input type="submit" class="button" value="搜索">
      </form>
    </div>
  </div>
  <div class="ad ad-t-leaderboard">
    <script type="text/javascript">/*960*60，仅图片，创建于2011-8-23*/ var cpro_id = 'u584594';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
  </div>
  <div class="box box-cols3 home-area1">
    <div class="c-1">
      <div class="slideshow" id="slideshow">
        <div class="image">
          <ul>
            {pc:content  action="position" posid="1" catid="17" thumb="1" order="listorder DESC" num="3" return="data"}
            {loop $data $r}
            <li> <a href="{$r['url']}" target="_blank"> <img src="{thumb($r['thumb'],279,200)}" width="279" height="200" > </a>
              <div class="caption">{str_cut($r['title'],28)}</div>
            </li>
            {/loop}
            {/pc}
          </ul>
        </div>
        <ul class="trigger" id="trigger">
          <li onClick="slideshow.pos(0)">1</li>
          <li onClick="slideshow.pos(1)">2</li>
          <li onClick="slideshow.pos(2)">3</li>
        </ul>
        <script src="{IMG_PATH}tinyslid.js"></script>
        <script>
    var slideshow=new TINY.slider.slide('slideshow',{
        id:'slideshow',
        auto:4,
        resume:false,
        vertical:false,
        navid:'trigger',
        activeclass:'current',
        position:0,
        rewind:false,
        elastic:true
    });
    </script>
      </div>
      <div class="panel columnist">
        <div class="phead">
          <h3 class="ptitle">最近更新</h3>
          <p class="pextra"><a href="/" target="_blank">更多&raquo;</a></p>
        </div>
        <div class="pbody">
          
          <ul class="articlelist">
		  {pc:content  action="lists" catid="23" order="id DESC" num="9" cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="ad ad-b-button">
        <img src="{IMG_PATH}16600000.gif" width="280" height="60" />
      </div>
    </div>
    <div class="c-2">
      <div class="panel headlines">
        <div class="pbody">
          {pc:content  action="position" posid="2" order="listorder DESC" num="1"}
        	{loop $data $r}
			<div class="headlinetop"> <a href="{$r[url]}" target="_blank">
            <h3>{str_cut($r[title],20,'')}</h3>
            <p>{str_cut($r[description],102)}</p>
            </a> </div>
			{/loop}  
         {/pc}
			<div class="headlinerecom"> <a class="link0" href="" target="_blank">[搜索引擎的发展简史]</a> <a class="link1" href="" target="_blank">[<span style="color:#CC0000;">关注PHP开发网官方微博</span>]</a> </div>
          {pc:content  action="lists" catid="23" order="id DESC" num="15" cache="3600"}
		  <ul class="headlinelist">
            {loop $data $r}{if $n ==2 || $n==3 || $n==4 || $n==5 || $n==6 }<li><span class="date">{date('m月d日',$r[inputtime])}</span> <a href="{$r[url]}" target="_blank">{str_cut($r[title],36,'')}</a></li>{/if}{/loop}
          </ul>
          <ul class="headlinelist">
            {loop $data $r}{if $n ==7 || $n==8 || $n==9 || $n==10 || $n==11 }<li><span class="date">{date('m月d日',$r[inputtime])}</span> <a href="{$r[url]}" target="_blank">{str_cut($r[title],36,'')}</a></li>{/if}{/loop}
          </ul>
          <ul class="headlinelist">
            {loop $data $r}{if $n ==12 || $n==13 || $n==14 || $n==15 || $n==1 }<li><span class="date">{date('m月d日',$r[inputtime])}</span> <a href="{$r[url]}" target="_blank">{str_cut($r[title],36,'')}</a></li>{/if}{/loop} 
          </ul>
         {/pc} 
        </div>
      </div>
    </div>
    <div class="c-3">
      <div class="panel events">
        <div class="phead">
          <h3 class="ptitle">精彩专题</h3>
          <p class="pextra"><a href="/" target="_blank">更多&raquo;</a></p>
        </div>
        <div class="pbody">
		  {pc:content action="lists" catid="10" order="id DESC" thumb="1" num="5"}
{loop $data $r}
{if $n ==1}<div class="eventrecom"> <a href="{$r[url]}" target="_blank">
            <h3>{$r[title]}</h3>
            <img src="{thumb($r[thumb], 110, 100)}" width="110" height="100" alt="">
            <p class="summary">{str_cut($r[description],90)}</p>
            </a> </div>{/if}
            <ul class="eventlist">
            {if $n ==2 || $n==3 || $n==4 || $n==5 }<li><a href="{$r[url]}" target="_blank">{str_cut($r[title], 34,'')}</a></li>{/if}
            </ul>
{/loop}
{/pc}
        </div>
      </div>
      <!--<div class="ad ad-b-button"> <a href="/" target="_blank"><img src="{IMG_PATH}313_inde.jpg" width="280" height="30"></a> </div>-->
      <div class="panel polls">
        <div class="phead">
          <h3 class="ptitle">社区动态</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
		  {pc:content action="lists" catid="$r[catid]" order="id" num="7"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="ad ad-t-button">
        <script src="{IMG_PATH}a3wz0000.js"></script>
      </div>
    </div>
  </div>
  
  <div class="ad ad-b-leaderboard">
    <script type="text/javascript">/*960*60，仅图片，创建于2011-8-23*/ var cpro_id = 'u584594';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
  </div>
  
  <div class="box box-cols3 home-area3">
    <div class="c-1">
      <div class="panel articlerecom">
        <div class="phead">
          <h3 class="ptitle">PHP开发</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
		  {pc:content action="lists" catid="10" order="id" num="12"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="panel reviews">
        <div class="phead">
          <h3 class="ptitle">Linux系统</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
		  {pc:content  action="lists" catid="7" order="id DESC" num="10" cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
    </div>
    <div class="c-2">
      <div class="panel catearticles">
        <div class="phead">
          <h3 class="ptitle">DIV&CSS</h3>
          <p class="pextra"><a href="/" target="_blank">更多 &raquo;</a></p>
        </div>
        <div class="pbody">
          <ul class="headlinelist">
          {pc:content action="lists" catid="13" order="id" num="10"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="panel catearticles catearticles-second">
        <div class="phead">
          <h3 class="ptitle">JavaScript</h3>
          <p class="pextra"><a href="/" target="_blank">更多 &raquo;</a></p>
        </div>
        <div class="pbody">
          <ul class="headlinelist">
           {pc:content action="lists" catid="14" order="id" num="10"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
    </div>
    <div class="c-3">
      <div class="panel articlerecom">
        <div class="phead">
          <h3 class="ptitle">Mysql</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
           {pc:content action="lists" catid="9" order="id" num="12"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="panel contributes">
        <div class="phead">
          <h3 class="ptitle">Apache</h3>
          <p class="pextra"><a href="" target="_blank">我要投稿</a></p>
        </div>
        <div class="pbody">
          <ul class="articlelist">
            {pc:content action="lists" catid="8" order="id" num="12"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div class="ad ad-b-leaderboard">
    <script type="text/javascript">/*960*60，仅图片，创建于2011-8-23*/ var cpro_id = 'u584594';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
  </div>
  
  <div class="box box-cols3 home-area3">
    <div class="c-1">
      <div class="panel articlerecom">
        <div class="phead">
          <h3 class="ptitle">开源CMS</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
		  {pc:content action="lists" catid="19" order="id" num="12"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="panel reviews">
        <div class="phead">
          <h3 class="ptitle">开源框架</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
		  {pc:content action="lists" catid="18" order="id" num="10"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
    </div>
    <div class="c-2">
      <div class="panel catearticles">
        <div class="phead">
          <h3 class="ptitle">XML&HTML</h3>
          <p class="pextra"><a href="http://www.thinkphp.biz/biz" target="_blank">更多 &raquo;</a></p>
        </div>
        <div class="pbody">
          <ul class="headlinelist">
            {pc:content action="lists" catid="12" order="id" num="10"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="panel catearticles catearticles-second">
        <div class="phead">
          <h3 class="ptitle">Ajax</h3>
          <p class="pextra"><a href="/" target="_blank">更多 &raquo;</a></p>
        </div>
        <div class="pbody">
          <ul class="headlinelist">
           {pc:content action="lists" catid="15" order="id" num="10"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
    </div>
    <div class="c-3">
      <div class="panel articlerecom">
        <div class="phead">
          <h3 class="ptitle">开源论坛</h3>
        </div>
        <div class="pbody">
          <ul class="articlelist">
           {pc:content action="lists" catid="20" order="id" num="12"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
      <div class="panel contributes">
        <div class="phead">
          <h3 class="ptitle">开源博客</h3>
          <p class="pextra"><a href="" target="_blank">我要投稿</a></p>
        </div>
        <div class="pbody">
          <ul class="articlelist">
            {pc:content action="lists" catid="21" order="id" num="12"cache="3600"}
{loop $data $r}
<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
{/loop}
{/pc}
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div class="ad ad-b-leaderboard">
    
  </div>
  <div class="panel videonews">
    <div class="phead">
      <h3 class="ptitle">图文教程</h3>
      <p class="pextra"><a href="/">更多 &raquo;</a></p>
    </div>
    <div class="pbody">
      <ul>
	  {pc:content action="lists" catid="21" thumb="1" order="listorder DESC" num="6"}
{loop $data $r}
<li> <a href="{$r[url]}" target="_blank"> <img src="{thumb($r[thumb],120,90)}" alt="{$r[title]}"> <span class="caption">{str_cut($r[title],20)}</span> </a> </li>
{/loop}
{/pc}
      </ul>
    </div>
  </div>
  
  <div id="links" class="links">
    <div class="partners"> <strong>合作伙伴:</strong> <a href="http://www.bbscms.net/"  target="_blank">模板超市</a> </div>
    <div class=""> <strong>友情链接:</strong> <a href="http://www.phpcms8.com/"  target="_blank">PHPCMS吧</a>  <a href="http://www.dededev.com/"  target="_blank">织梦模板网</a> <a href="http://www.it124.com/"  target="_blank">模板仓库</a></div>
    <!--<div> <a href="http://www.dededev.com/"  target="_blank">织梦模板网</a> <a href="http://www.it124.com/"  target="_blank">模板仓库</a> </div>-->
  </div>
{template "content","footer"}
